package com.zt.bigdata.vertx.service;

import com.zt.bigdata.vertx.ResponseContent;
import com.zt.bigdata.vertx.config.Config;
import io.vertx.core.Handler;
import io.vertx.ext.web.RoutingContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service("optionsHandler")
public class OptionsHandler implements Handler<RoutingContext> {

    @Autowired
    Config config;

    @Override
    public void handle(RoutingContext routingContext) {
        new ResponseContent().returnContent(routingContext.request().response(), "ok");
    }
}
